home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / unix / amiga / 859 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.6 KB

  1. Path: eno.Princeton.EDU!john
  2. From: john@eno.Princeton.EDU (John Saponara)
  3. Newsgroups: comp.unix.amiga
  4. Subject: How avoid read-only filesystem with linux?
  5. Date: 17 Apr 1996 03:06:21 GMT
  6. Organization: Princeton University
  7. Distribution: world
  8. Message-ID: <4l1n7d$4po@cnn.Princeton.EDU>
  9. Reply-To: john@eno.Princeton.EDU (John Saponara)
  10. NNTP-Posting-Host: meenie.princeton.edu
  11. Originator: john@meenie
  12.  
  13.  
  14. Hi folks,
  15.  
  16. I tried to install linux, first by following the InstGuide2.0a.txt
  17. and then from watchtower-fs.README, but arrived at a read-only
  18. state with both.  This was not due to an improper shutdown, AFAIK.
  19. My machine is an a4000, 18Megs ram, 120Meg hard drive, OS3.1
  20. Due to my small hard drive, I'm using /dev/hda1 as amiga sys:, 
  21. /dev/hda2 as generic amiga space (for holding linux archives to be 
  22. installed), /dev/hda3 for linux root and usr, and /dev/hda4 for
  23. swap (haven't set that up yet).
  24.  
  25. My most recent procedure follows.
  26.  
  27. amiboot-3.1 -d -k vmlinux1.2.13pl9 -r filesys.pl4.newer.minix \
  28.     video=multiscan-productivity,inverse
  29.  
  30. cd mnt
  31. mkdir am root
  32. mke2fs /dev/hda3
  33. mount -t affs /dev/hda2 am
  34. mount -t ext2 /dev/hda3 root
  35. cd root
  36. tar xzf ../am/linux/watchtower-root-fs.tar.gz
  37. shutdown -r now
  38.  
  39. [ amiga reboots ]
  40.  
  41. amiboot-3.1 -k vmlinux1.2.13pl9 root=/dev/hda3 \
  42.     video=multiscan-productivity,inverse
  43.  
  44. vi /etc/fstab
  45. # get error: "read-only filesystem"
  46. # therefore remount:
  47.  
  48. mount -n -o remount -t ext2 /dev/hda3 /
  49.  
  50. mkdir /mnt/am
  51. vi /etc/fstab
  52.     # set up fstab like this:
  53.     /dev/hda3  /        ext2 defaults
  54.     /proc      /proc    proc defaults
  55.     /dev/hda2  /mnt/am  affs defaults
  56.  
  57. # watchtower comes only with /dev/sd*,
  58. # so make hd* for a4000 IDE controller:
  59.  
  60. cd /dev
  61. mknod /dev/hda2 b 3 2
  62. mknod /dev/hda3 b 3 3
  63.  
  64. cd /mnt/root
  65. tar xzf ../am/linux/watchtower-usr-fs.tar.gz
  66. # tar periodically prints: Warning - bdflush not running
  67.  
  68. ldconfig
  69. shutdown -r now
  70.  
  71. [ amiga reboots ]
  72.  
  73. amiboot-3.1 -k vmlinux1.2.13pl9 root=/dev/hda3 \
  74.     video=multiscan-productivity,inverse
  75.  
  76. cd /etc
  77. rm inittab
  78.     [ get error: "read-only filesystem" ]
  79.     [ therefore remount: ]
  80. mount -n -o remount -t ext2 /dev/hda3 /
  81. rm inittab
  82. ln -s inittab.multiuser inittab
  83. shutdown -r now
  84.  
  85. [ amiga reboots ]
  86.  
  87. amiboot-3.1 -k vmlinux1.2.13pl9 root=/dev/hda3 \
  88.     video=multiscan-productivity,inverse
  89.  
  90. At this point, linux still boots with a read-only filesystem and gives
  91. many error messages stating that it is incapable of writing mtab, utmp,
  92. and other files.  There is no /etc/rc file (which I read is supposed to
  93. remount the read-only root fs during boot up).
  94.  
  95. The linux faq talks about using `e2fsck -a', but not on a writable
  96. root partition.
  97.  
  98. Any suggestions appreciated!
  99. John
  100.  
  101.